<template>
  <el-select
    class="input-default-width"
    placeholder="请选择指导老师"
    clearable
  >
    <el-option
      v-for="item in data"
      :key="item.teacherId"
      :label="item.teacherName"
      :value="item.teacherId"
    ></el-option>
  </el-select>
</template>

<script setup>
import { ref, onMounted } from "vue"
import { GetBindingTeacherApi } from "@/api/common"
// const props = defineProps({
//   modelValue: Number | String
// })
const data = ref([]);
const handleGetBindingTeacher = async () => {
  let res = await GetBindingTeacherApi();
  if (res.success) {
    data.value = res.entityList;
  }
}
onMounted(() => {
  handleGetBindingTeacher();
})
</script>

<style lang="scss" scoped></style>